package edu.sctu.xialei.june.day20150618one.character;

/**
 * Created by Administrator on 2015/6/18.
 */
public class CharacterUtil {

    Character character;

    public CharacterUtil(char character){
        this.character = new Character(character);
    }

    public void characterOperation(){
        System.out.println(character.charValue());

        System.out.println(character.compareTo('x'));//对字符型类的字符值进行比较,即整型值的减法

        System.out.println(Character.isDigit(character));

        System.out.println(Character.isLetter(character));

        System.out.println(Character.toLowerCase('A'));

        System.out.println(Character.toUpperCase('a'));
    }
}
